#pragma once

#include <QTcpSocket>
#include <QWidget>


class GameWindow : public QWidget {
    Q_OBJECT

private:
    QTcpSocket* socket;

public:
    explicit GameWindow(QTcpSocket* socket);

public slots:
    void onReadyRead();
    void onErrorOccurred(QAbstractSocket::SocketError error);

protected:
    void closeEvent(QCloseEvent* event) override;

signals:
#pragma clang diagnostic push
#pragma ide diagnostic ignored "NotImplementedFunctions"
    void closed();
#pragma clang diagnostic pop
};
